package com.example.stockholdtrack.data

import java.util.*

// 股票数据类
data class StockItem(
    val id: String = UUID.randomUUID().toString(),
    val name: String,
    val code: String,
    val averagePrice: Double,
    val currentPrice: Double = 0.0,
    val quantity: Int = 0
)

// 持仓记录数据类
data class PositionRecord(
    val id: String = UUID.randomUUID().toString(),
    val quantity: Int,
    val price: Double,
    val date: Date = Date()
) 